package com.giahoang.web;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class HomeController {
    
    private static final Logger LOGGER=Logger.getLogger(HomeController.class);
    
    @RequestMapping(value="/home",produces = "text/html", method = RequestMethod.GET)
    public String showHomePage()
    {
        if(LOGGER.isDebugEnabled())
        {
            LOGGER.info("HomeController Construction index 456");
        }
        
        return "home/index";
    }

}
